import java.io.File;
import java.util.ArrayList;

public class TesteDesvioPadrao {
	public static void main(String[] args) {
		try {
			int folds = 2;
			
			double t = 5.0/0;

			String fileName = "/home/diego/workspace/Nearest Shrunken Centroids/data/iris/irisTeste.arff";
			File file = new File(fileName);

			DataBase dataBase = new DataBase(file);
			// dataBase.shuffle();

			ArrayList<File> files = dataBase.balancedDivision(0.67);
			File trainingFile = files.get(0);
			File testingFile = files.get(1);
			
			DataBase dataBaseTrain= new DataBase(trainingFile);
			DataBase dataBaseaaa= new DataBase(testingFile);

			System.out.printf("Database: %s\n\n", dataBaseTrain.getName());
			System.out.printf("Instâncias: %d\n\n", dataBaseTrain.getInstances());

			Shrinker shrinker = new Shrinker(dataBaseTrain, folds);

			double delta = shrinker.searchDelta();
		} catch (Exception e) {
			e.printStackTrace();
		}

	}
}
